package com.ynkbny.util;


public enum RespStaticEnum {

    /*通用*/
    SUCCESS(200, "操作成功"),
    FAIL(500, "操作失败"),

    /*数据上报 300XX*/
    UPLOAD_SUCCESS(30010,"上报成功"),
    UPLOAD_FAIL(30020,"上报失败"),
    UPLOAD_EXCEPTION(30030,"上报异常"),


    /*登录 5002XX*/
    LOGIN_SUCCESS(500200, "登录成功"),
    LOGIN_ERROR(500201, "登录失败"),
    LOGIN_TIMEOUT(500202, "登录超时");


    private final Integer status;
    private final String msg;


    RespStaticEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
